Skip to content

fix(database): don't emit UNSIGNED on Postgres - #2295

Open
osbre wants to merge 2 commits into
tempestphp:3.xfrom
osbre:fix/database-unsigned-postgres
Open

fix(database): don't emit UNSIGNED on Postgres#2295
osbre wants to merge 2 commits into
tempestphp:3.xfrom
osbre:fix/database-unsigned-postgres

Conversation

@osbre

@osbre osbre commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

Fixes a bug where using unsigned: true on an integer column breaks Postgres migrations with a syntax error at or near "UNSIGNED".

Postgres doesn't support unsigned integer types, so it now gets the plain integer type instead. MySQL and SQLite are unchanged. Added missing unit tests for unsigned columns to CI so Postgres doesn't break again.

@github-actions

github-actions Bot commented Sep 12, 2026

Copy link
Copy Markdown

Benchmark Results

Comparison of fix/database-unsigned-postgres against 3.x (006169824ba6ae00edd0d87662f01bc6baddc401).

Open to see the benchmark results
Benchmark Set Mem. Peak Time Variability
ViewRenderBench(benchPlainHtml) - 22.036mb 0.00% 465.613μs +8.56% ±1.89% -27.71%

Generated by phpbench against commit 7047100

@osbre
osbre marked this pull request as draft September 12, 2026 04:39
@osbre
osbre marked this pull request as ready for review September 12, 2026 04:44
Comment thread packages/database/src/QueryStatements/IntegerStatement.php Outdated
Comment thread tests/Integration/Database/QueryStatements/IntegerStatementTest.php Outdated
@osbre
osbre force-pushed the fix/database-unsigned-postgres branch from 270ed07 to 1d95d5d Compare September 13, 2026 12:11
@osbre
osbre requested a review from brendt September 13, 2026 12:12
@osbre
osbre force-pushed the fix/database-unsigned-postgres branch from 1d95d5d to 7047100 Compare September 13, 2026 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants